//
//  WLDownLoadCenter.h
//  WanLian
//
//  Created by 123456 on 2018/12/7.
//  Copyright © 2018 wanlian. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "WLFileBaseCenter.h"
NS_ASSUME_NONNULL_BEGIN

@interface WLDownLoadCenter : WLFileBaseCenter
decl_single_instance(WLDownLoadCenter)
- (WLSocketWorker *)downloadTaskWithModel:(WLFileUpDownLoadModel *)model
                                 progress:(void (^)(float process))downloadProgress
                                  success:(void (^)(NSDictionary *successDict))success
                                  failure:(void (^)(NSString *errorMsg, NSInteger errorTag))failure
                                    error:(void (^)(NSError *error))err;
//- (NSURLSessionDataTask *)downloadTaskWithModel:(WLFileUpDownLoadModel *)model
//                                       progress:(void (^)(float progress))downloadProgress
//                                        success:(void (^)(NSDictionary *successDict))success
//                                        failure:(void (^)(NSString *errorMsg, NSInteger errorTag))failure
//                                          error:(void (^)(NSError *error))err;
@end

NS_ASSUME_NONNULL_END
